#include "widget.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    // 设置全局的样式
    QString style;
    // 设置复选框的下拉按钮
    style += "QComboBox::down-arrow {image: url(:/down.png)}";
    // 设置进度条的背景颜色
    style += "QProgressBar::chunk {background-color : red}";

    // 设置按钮的伪类样式
    // 放在按钮上变色，点击按钮变色
    style += "QPushButton {font-size : 20px}";
    style += "QPushButton:hover {color : red}";
    style += "QPushButton:pressed {color : blue}";

    a.setStyleSheet(style);


    Widget w;
    w.show();
    return a.exec();
}
